package com.shepin.homecentre;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;

import com.shepin.R;
import com.shepin.haiwai.AoZouActivity;
import com.shepin.haiwai.MeiZhouActivity;
import com.shepin.haiwai.OuZhouActivity;
import com.shepin.haiwai.YaZhouActivity;

public class ZhiTaoActivity extends Activity implements OnClickListener {

	private ImageView ZFanHui;
	private ImageView YaZhou, OuZhou, AoZhou, MeiZhou;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_zhi_tao);

		ZFanHui = (ImageView) findViewById(R.id.ZFanHui);
		YaZhou = (ImageView) findViewById(R.id.YaZhou);
		OuZhou = (ImageView) findViewById(R.id.OuZhou);
		AoZhou = (ImageView) findViewById(R.id.AoZhou);
		MeiZhou = (ImageView) findViewById(R.id.MeiZhou);

		ZFanHui.setOnClickListener(this);
		YaZhou.setOnClickListener(this);
		OuZhou.setOnClickListener(this);
		AoZhou.setOnClickListener(this);
		MeiZhou.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.ZFanHui:

			finish();
			break;
		case R.id.YaZhou:
			Intent intenty = new Intent(ZhiTaoActivity.this,YaZhouActivity.class);
			startActivity(intenty);
			break;
		case R.id.OuZhou:
			Intent intento = new Intent(ZhiTaoActivity.this,OuZhouActivity.class);
			startActivity(intento);
			break;
		case R.id.AoZhou:

			Intent intenta = new Intent(ZhiTaoActivity.this,AoZouActivity.class);
			startActivity(intenta);
			break;
		case R.id.MeiZhou:
			Intent intentm = new Intent(ZhiTaoActivity.this,MeiZhouActivity.class);
			startActivity(intentm);
			break;
		}
	}

}
